package cn.cgl.alpacaweather;

import android.app.Application;
import android.content.Context;

import org.litepal.LitePalApplication;

/**
 * <b color="#F50F20">Created by gunleychan on 2017/3/18 15:48.
 * <br/>
 * </b>
 */

public class MyApplication extends Application {

    private static Context context;

    @Override
    public void onCreate() {
        context = getApplicationContext();
        LitePalApplication.initialize(context);
    }

    /**
     * @return 获取全局context对象
     */
    public static Context getContext() {
        return context;
    }
}
